#include<stdio.h>
#include<conio.h>
#include<string.h>
int main()
{
	int i,dem=0;
	char xau[100];
	printf(" nhap xau ban dau");
	gets(xau);
	printf("\n xau vua nhap la");
	for (i=0;i<strlen(xau);i++);
	printf("%c",xau[i]);
	
	if((xau[i]==' ')&&(xau[i+1]=='e')&&(xau[i+1]=='m')&&(xau[i+1]==' '))dem=dem+1;
	printf("\n so tu em trong xau la: %d",dem);
	
	getch();
	
}
